package com.jffccloud.provider.service.impl;

import com.jffccloud.provider.api.model.Demo;
import com.lmax.disruptor.EventHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class DemoEventHandler implements EventHandler<Demo> {
    @Override
    public void onEvent(Demo o, long l, boolean b) throws Exception {
        log.error("传入的事件是："+o.getId()+";;"+o.getName()+";;;"+l+";;;"+b);
    }
}
